Maintenance and Fluid Information for 2021 Hyundai SONATA 2.5L
The listing puts the oil capacity at 5.5 quarts with filter. It is a helpful guide for how much oil to have on hand, but use the specified level-check procedure after refilling to confirm the final amount.
How much oil does my 2021 Hyundai SONATA 2.5L take?
The listed engine-oil capacity for this vehicle is 5.5 quarts with filter.

